<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="base.jsp" %>
<div class="top1">
		<div class="top2">
			
			<div class="top_right">
				
				
				
				<c:choose>
					<c:when test="${not empty user }">
						<font style="color:red">欢迎您！！${sessionScope.user.username }</font>
						<c:if test="${not empty user.pic }">
							<img width="30" height="30" alt="" src="showimg.img?n=${sessionScope.user.pic }" style="margin-left:20px;">
							
						</c:if>
						
					</c:when>
					<c:otherwise>
						<font style="color:red">嘿，欢迎来到你的书城！</font>
						<a href="loginuser.jspx"><i class=""></i>请登录</a>
						<a href="adduser.jspx">免费注册</a>
					</c:otherwise>
				
				
				</c:choose>
				
				<a href="userorderlist.jspx"><i class=" icon-book icon-white"></i>我的书城</a>
				<a href="showcar.jspx"><i class="icon-shopping-cart icon-white"></i>购物车</a>
				<a href="favlist.jspx"><i class="icon-folder-open icon-white"></i>收藏夹</a>
				
				
			</div>
		</div>
		<form class="form-search" style="float:right;margin-top:15px;margin-right:250px;" action="searchlist.jspx" method="post">
			  <div class="input-append">
				  <input class="span6 mytext" id="appendedInputButton"  type="text" placeholder="搜你想要的" name="search">
				  <a class="btn" id="testa" type="submit" ><i class="icon-search"></i>搜搜</a>
			</div>
		</form>
		<a href="index.jspx" title="">
			<div id="mylogo">
			
			</div>
		</a>
		<script src="../js/jquery.js" type="text/javascript"></script>
	<script type="text/javascript" src="../js/bootstrap.min.js"></script>
	<script type="text/javascript">
			$("#testa").click(function(){
				var text = $(".mytext").val();
				location.href = "searchlist.jspx?search="+text;
			});
	
	</script>
	</div>